<template>
	<view class="wrapper">
		<swiper indicator-active-color="#0077FF" indicator-color="rgba(255,255,255,.5)" :indicator-dots="true"
			:autoplay="true" :interval="3000" :duration="1000">
			<swiper-item v-for="v in 3">
				<image src="../../static/shouye/banner.png" mode="aspectFill"></image>
			</swiper-item>
		</swiper>
		<div class="main">
			<div class="center bfff input-box" @click="open('/pages/index/souSuo/souSuo')">
				<div class="f28 flex1 c999">请输入服务关键词</div>
				<image src="../../static/shouye/search.png" mode="widthFix" class="search-icon"></image>
			</div>
			<div class="box">
				<div class="title tCenter ctheme f32 fbold">便民服务</div>
				<div class="space-between fWrap">
					<div class="nav-box mt40 center" @click="open('/pages/index/banShi/banShi')">
						<image src="../../static/shouye/nc1.png" mode="widthFix" class="nav-icon mr20"></image>
						<div class="f32 flex1">预约办事</div>
					</div>
					<div class="nav-box mt40 center" @click="open('/pages/index/shangMen/shangMen')">
						<image src="../../static/shouye/nc2.png" mode="widthFix" class="nav-icon mr20"></image>
						<div class="f32 flex1">预约上门</div>
					</div>
					<div class="nav-box mt30 center" @click="open('/pages/index/xinXi/xinXi')">
						<image src="../../static/shouye/nc3.png" mode="widthFix" class="nav-icon mr20"></image>
						<div class="f32 flex1">信息公开</div>
					</div>
					<div class="nav-box mt30 center" @click="open('/pages/index/zhiNan/zhiNan')">
						<image src="../../static/shouye/nc4.png" mode="widthFix" class="nav-icon mr20"></image>
						<div class="f32 flex1">办事指南</div>
					</div>
				</div>
			</div>
			<div class="box">
				<div class="title tCenter cyellow f32 fbold">志愿服务</div>
				<div class="space-between fWrap">
					<div class="nav-box mt40 center" @click="open('/pages/index/tuanDui/tuanDui')">
						<image src="../../static/shouye/nc5.png" mode="widthFix" class="nav-icon mr20"></image>
						<div class="f32 flex1">团队介绍</div>
					</div>
					<div class="nav-box mt40 center" @click="open('/pages/index/fuWu/fuWu')">
						<image src="../../static/shouye/nc6.png" mode="widthFix" class="nav-icon mr20"></image>
						<div class="f32 flex1">服务预约</div>
					</div>
					<div class="nav-box mt30 center" @click="open('/pages/index/gongJian/gongJian')">
						<image src="../../static/shouye/nc7.png" mode="widthFix" class="nav-icon mr20"></image>
						<div class="f32 flex1">社区共建</div>
					</div>
					<div class="nav-box mt30 center" @click="showMobile=true">
						<image src="../../static/shouye/nc8.png" mode="widthFix" class="nav-icon mr20"></image>
						<div class="f32 flex1">投诉电话</div>
					</div>
				</div>
			</div>
		</div>
		<u-action-sheet @select="select" @close="showMobile=false" round="12" cancelText="关闭" :actions="list"
			title="投诉电话" :show="showMobile" :safeAreaInsetBottom="false"></u-action-sheet>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				loading: true,
				showMobile: false,
				list: [{
					name: ' 0832-3996595',
					color: '#000',
					fontSize: '14'
				}, ],
			}
		},
		computed: {

		},
		onLoad() {

		},
		methods: {
			select() {
				uni.makePhoneCall({
					phoneNumber:''
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	:deep(.u-icon--right) {
		display: none;
	}

	.box {
		width: 670rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 0rpx 20rpx 2rpx rgba(0, 119, 255, 0.1);
		border-radius: 12rpx 12rpx 12rpx 12rpx;
		padding: 0 28rpx 40rpx;
		margin-top: 60rpx;
		border: 1px solid rgba(0, 0, 0, 0);

		.title {
			width: 230rpx;
			height: 82rpx;
			background: url(@/static/shouye/title1.png) no-repeat;
			background-size: 100% 100%;
			margin: -25rpx auto 0;
			line-height: 78rpx;
		}

		.nav-icon {
			width: 62.43rpx;
			height: 67.01rpx;
		}

		.nav-box {
			width: 292rpx;
			height: 128rpx;
			padding: 0 32rpx;
			background-size: 100% 100%;

			&:nth-of-type(1) {
				background-image: url(@/static/shouye/nb1.png);

				.f32 {
					color: #0077FF;
				}
			}

			&:nth-of-type(2) {
				background-image: url(@/static/shouye/nb2.png);

				.f32 {
					color: #FF8000;
				}
			}

			&:nth-of-type(3) {
				background-image: url(@/static/shouye/nb3.png);

				.f32 {
					color: #6B50FF;
				}

			}

			&:nth-of-type(4) {
				background-image: url(@/static/shouye/nb4.png);

				.f32 {
					color: #21C7AB;
				}
			}
		}

		&:nth-of-type(3) {
			.nav-box {

				&:nth-of-type(1) {
					background-image: url(@/static/shouye/nb5.png);
				}

				&:nth-of-type(2) {
					background-image: url(@/static/shouye/nb6.png);
				}

				&:nth-of-type(3) {
					background-image: url(@/static/shouye/nb7.png);

				}

				&:nth-of-type(4) {
					background-image: url(@/static/shouye/nb8.png);
				}
			}

			.title {
				background: url(@/static/shouye/title2.png) no-repeat;
				background-size: 100% 100%;
			}
		}

	}

	.input-box {
		width: 670rpx;
		height: 74rpx;
		background: #FFFFFF;
		border-radius: 12rpx 12rpx 12rpx 12rpx;
		padding: 0 20rpx;
		border: 2rpx solid #F3F3F3;

		.search-icon {
			width: 37rpx;
			height: 37rpx;
		}
	}

	.main {
		background: url(@/static/shouye/pageback.png) no-repeat left top;
		background-size: 100% auto;
		padding: 40rpx;
	}

	swiper,
	swiper image {
		width: 100%;
		height: 340rpx;
	}
</style>